<?php
$Getdata = $_GET['values'];
mb_internal_encoding("UTF-8");
mb_http_output("UTF-8");
ob_start("mb_output_handler");

echo GetAs($Getdata);

function GetAs($data) {
    if( $data == 'Townhouse' )
    $xml = file_get_contents("http://www.homesthailand.co.th/th/map/xml/Townhouse/");
else if( $data == 'Condo')
    $xml = file_get_contents("http://www.homesthailand.co.th/th/map/xml/Condo/");
else if( $data == 'SingleHouse')
    $xml = file_get_contents("http://www.homesthailand.co.th/th/map/xml/Single-House/");
return $xml;
}
?>